-- GENERATED SPELL FOR [Laughing Skull Enforcer] --


function spell0_17370(pUnit, Event) --@Shield Slam,n/a--
pUnit:FullCastSpellOnTarget(15655,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17370', 2316, 1)
end

function spell1_17370(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(14516,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17370', 609, 1)
end

function Sorts_17370(pUnit, Event)
local choix_sorts_17370 = math.random(0, 1)
if choix_sorts_17370 == 0 then
pUnit:RegisterEvent('spell0_17370', 1, 1)
end
if choix_sorts_17370 == 1 then
pUnit:RegisterEvent('spell1_17370', 1, 1)
end
end

function mob17370_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17370', math.random(1500, 3000), 1)
end

function mob17370_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17370_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17370_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17370, 1, 'mob17370_Action')
RegisterUnitEvent(17370, 2, 'mob17370_Leave')
RegisterUnitEvent(17370, 3, 'mob17370_Kill')
RegisterUnitEvent(17370, 4, 'mob17370_Die')
